﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sispe.Repository
{
   public class FotocheckRepository : MasterRepository, IFotocheckRepository
    {

        public List<Entities.FOTOCHECK> GetAllFromFotocheck()
        {
            var query = from f in context.FOTOCHECK
                        select f;

            return query.ToList();
        }

        public List<Entities.FOTOCHECK> GetAllFromFotocheckByPersona(int dni)
        {
            var query = from f in context.FOTOCHECK
                        where f.Dni.Equals(dni)
                        select f;
            return query.ToList();
        }
    }
}
